]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[MessageTray] Clear bannerText before re-adding on updates
authorFlorian Müllner <fmuellner@src.gnome.org>
Mon, 22 Feb 2010 19:06:13 +0000 (20:06 +0100)
committerFlorian Müllner <fmuellner@src.gnome.org>
Mon, 22 Feb 2010 19:14:44 +0000 (20:14 +0100)
Currently only the old title/summary line is removed from
notifications before setting the updated values - do the
same for bannerText if applicable.

js/ui/messageTray.js

index 188a55fb2ca31609a3f066fc33787754874c0dc8..62011a2874a2110a63daa60ad4f8947b7d6f9df3 100644 (file)
@@ -80,7 +80,7 @@ Notification.prototype = {
         let children = this.actor.get_children();
         for (let i = 0; i < children.length; i++) {
             let meta = this.actor.get_child_meta(children[i]);
-            if (clear || meta.row == 0)
+            if (clear || meta.row == 0 || (this._bannerBody && meta.row == 1))
                 children[i].destroy();
         }
         if (clear) {